package com.wink.cachedemo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;



/**
 * 用户表
 *
 * @author xw
 * @date 2020/10/27 11:45
 */
@Entity
@Table(name = "tb_user")
@TableName("tb_user")
@EqualsAndHashCode(callSuper = true)
@Data
@org.hibernate.annotations.Table(appliesTo = "tb_user",comment="用户表")
public class User extends BaseEntity {

    @Column(name = "user_name", columnDefinition = ("varchar(50) not null comment '用户账号'"))
    private String userName;

    @Column(name = "password", columnDefinition = ("varchar(64) not null comment '密码'"))
    private String password;
}
